#ifndef DAP_MAIN_H
#define DAP_MAIN_H

#include "drv_usb2uart.h"
#include "dap_descriptors.h"
#include "user_param.h"

extern chry_ringbuffer_t g_usbrx;

extern uint32_t IC_UID;

void chry_dap_init(void);
void chry_dap_handle(void);
void chry_dap_usb2uart_handle(void);

void chry_dap_usb2uart_uart_config_callback(struct cdc_line_coding *line_coding);
void chry_dap_usb2uart_uart_send_bydma(uint8_t *data, uint16_t len);
void chry_dap_usb2uart_uart_send_complete(uint32_t size);

#endif